package per.kongtouxu.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;
import per.kongtouxu.domain.pojo.Menu;
import per.kongtouxu.domain.vo.V_AdminLog;

import java.util.List;

public interface MenuDao {
    //根据adminId查询菜单
    public List<Menu> findMenuByAdminId(@Param("adminId") Integer adminId);
    //分页查询日志
    public List<Menu> findByPage(@Param("rb") RowBounds rb);
    //查询分页数量
    public Integer findCountByPage();
    //增加菜单
    public void add(@Param("menu") Menu menu);
    //更新菜单
    public void update(@Param("menu") Menu menu);
    //删除菜单
    public void delete(@Param("menuId")  Integer menuId);
    //查询所有
    public List<Menu> findAll();
    //根据角色ID查询菜单
    public List<Menu> findMenuByRoleId(@Param("roleId") Integer roleId);
}
